Skip to content

Conversation

@minggangw
Copy link
Member

@minggangw minggangw commented May 16, 2025

This PR adds support for the arm64 architecture in the Linux build and test workflow. Key changes include:

  • Parameterized the "runs-on" configuration to use an Ubuntu version from the matrix.
  • Introduced a new matrix for "architecture" with an include block for arm64 support.
  • Updated Node.js setup and coveralls flag names to include the architecture.

Fix: #1131

@minggangw minggangw requested a review from Copilot May 16, 2025 03:13
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for arm64 architecture in the Linux build and test workflow.

  • Introduces a new matrix entry for arm64 with a dedicated runner (ubuntu-version "latest-arm64") and limits node version to 20.X for arm64.
  • Updates the Node.js setup step and coveralls flag to include the architecture in their labels for clarity.

@coveralls
Copy link

coveralls commented May 16, 2025

Coverage Status

coverage: 84.864%. remained the same
when pulling d89b913 on minggangw:support-arm64-arch
into 5e98a20 on RobotWebTools:develop.

@minggangw minggangw requested a review from Copilot May 16, 2025 06:35
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for the arm64 architecture in the Linux build and test workflow. Key changes include:

  • Parameterizing the Ubuntu version using matrix variables.
  • Introducing a matrix include for arm64 with a conditional check.
  • Updating steps to reflect architecture-specific configurations.

- architecture: arm64
node-version: 22.X
ubuntu-version: 24.04-arm
condition: ${{ contains(github.ref, 'develop') }}
Copy link

Copilot AI May 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 'condition' property within the matrix include is not a standard GitHub Actions feature; consider moving this check to an 'if:' condition at the job or step level to ensure it is correctly applied.

Copilot uses AI. Check for mistakes.
@minggangw minggangw requested a review from Copilot May 16, 2025 06:58
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for arm64 architecture to the Linux build-and-test workflow.

  • Updated the runs-on parameter and job condition to accommodate running on different Ubuntu versions and architectures.
  • Extended the matrix configuration to include arm64 builds with specific Node.js and Ubuntu version selections.
Comments suppressed due to low confidence (1)

.github/workflows/linux-build-and-test.yml:43

  • Verify that the 'ubuntu-24.04-arm' label is a valid GitHub Actions runner identifier for arm64 builds, ensuring consistency with the naming conventions used in the workflow.
ubuntu-version: 24.04-arm

needs: identify-ros-distro
runs-on: ubuntu-latest
runs-on: ubuntu-${{ matrix.ubuntu-version }}
if: ${{ matrix.architecture == 'x64' || contains(github.ref, 'develop') }}
Copy link

Copilot AI May 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding a comment to explain that the arm64 jobs are gated to run only on develop branches to improve maintainability and clarify the intended behavior.

Copilot uses AI. Check for mistakes.
@minggangw minggangw requested a review from Copilot May 16, 2025 07:30
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for the arm64 architecture in the Linux build and test workflow. Key changes include:

  • Parameterized the "runs-on" configuration to use an Ubuntu version from the matrix.
  • Introduced a new matrix for "architecture" with an include block for arm64 support.
  • Updated Node.js setup and coveralls flag names to include the architecture.

- architecture: arm64
node-version: 22.X
ubuntu-version: 24.04-arm
exclude: ${{ !contains(github.ref, 'develop') }}
Copy link

Copilot AI May 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Consider adding a comment explaining why arm64 jobs are excluded when the branch does not contain 'develop', to improve clarity and maintainability.

Copilot uses AI. Check for mistakes.
@minggangw minggangw changed the title Support arm64 arch Support arm64 arch for ROS2 rolling May 16, 2025
@minggangw minggangw changed the title Support arm64 arch for ROS2 rolling Support arm64 arch for ROS2 Rolling May 16, 2025
@minggangw minggangw merged commit c44a0a5 into RobotWebTools:develop May 16, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support arm64 arch for ROS2 Rolling

2 participants